Struct ockam_core::access_control::AllowSourceAddress
source · pub struct AllowSourceAddress(pub Address);Expand description
An Access Control type that allows messages from the given source address to go through Note that it’s based on source address, not a first hop of return_route, which may be different in some scenarios
Tuple Fields§
§0: AddressImplementations§
Trait Implementations§
source§impl Debug for AllowSourceAddress
impl Debug for AllowSourceAddress
source§impl IncomingAccessControl for AllowSourceAddress
impl IncomingAccessControl for AllowSourceAddress
Return true if the message is allowed to pass, and false if not.
Auto Trait Implementations§
impl RefUnwindSafe for AllowSourceAddress
impl Send for AllowSourceAddress
impl Sync for AllowSourceAddress
impl Unpin for AllowSourceAddress
impl UnwindSafe for AllowSourceAddress
Blanket Implementations§
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