pub struct OastProtocolSet(/* private fields */);Expand description
Closed non-empty set of callback protocols granted to a registration.
Implementations§
Source§impl OastProtocolSet
impl OastProtocolSet
Sourcepub fn new(allow_dns: bool, allow_http: bool) -> Result<Self, OastError>
pub fn new(allow_dns: bool, allow_http: bool) -> Result<Self, OastError>
Creates a non-empty protocol grant.
Sourcepub const fn allows(self, protocol: OastEventProtocol) -> bool
pub const fn allows(self, protocol: OastEventProtocol) -> bool
Returns whether this grant permits a protocol.
Sourcepub const fn allows_dns(self) -> bool
pub const fn allows_dns(self) -> bool
Returns whether DNS is granted.
Sourcepub const fn allows_http(self) -> bool
pub const fn allows_http(self) -> bool
Returns whether HTTP is granted.
Trait Implementations§
Source§impl Clone for OastProtocolSet
impl Clone for OastProtocolSet
Source§fn clone(&self) -> OastProtocolSet
fn clone(&self) -> OastProtocolSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OastProtocolSet
Source§impl Debug for OastProtocolSet
impl Debug for OastProtocolSet
impl Eq for OastProtocolSet
Source§impl PartialEq for OastProtocolSet
impl PartialEq for OastProtocolSet
impl StructuralPartialEq for OastProtocolSet
Auto Trait Implementations§
impl Freeze for OastProtocolSet
impl RefUnwindSafe for OastProtocolSet
impl Send for OastProtocolSet
impl Sync for OastProtocolSet
impl Unpin for OastProtocolSet
impl UnsafeUnpin for OastProtocolSet
impl UnwindSafe for OastProtocolSet
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more