pub struct Block {
pub namespace: String,
pub enabled: Option<bool>,
pub deny: Vec<BlockDeny>,
pub downsampling: Vec<BlockRule>,
pub subjects: Option<BlockSubjects>,
}Expand description
What a router runs for one face, as somebody read it (§2.15).
Fields§
§namespace: StringThe deployment’s namespace, empty for none (core §1.6).
enabled: Option<bool>The block’s enabled, as read: Some(false) when access control is
not enabled, which a tool reading a router’s configuration also reads
for an enabled absent from it, as zenoh 1.10.1 does (§2.15, 0.7,
F-124); None when it was not read.
deny: Vec<BlockDeny>The denies of every policy that lists one subject that can match the far principal’s sessions on the face (§2.15): a tool checks each such subject’s denies alone, since any allow wins across subjects.
downsampling: Vec<BlockRule>In the block’s order.
subjects: Option<BlockSubjects>The block’s posture, subjects and policies’ subject lists, which
check_subjects and check_narrowing read; None when they
were not read.
Trait Implementations§
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Forget for Block
impl Freeze for Blockwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<BlockDeny>: Freeze,
PhantomData<BlockRule>: Freeze,
PhantomData<BlockSubject>: Freeze,
PhantomData<BlockPolicy>: Freeze,
impl Move for Block
impl RefUnwindSafe for Block
impl Send for Blockwhere
RawVecInner: Send,
impl Sync for Blockwhere
RawVecInner: Sync,
impl Unpin for Block
impl UnsafeUnpin for Blockwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<BlockDeny>: UnsafeUnpin,
PhantomData<BlockRule>: UnsafeUnpin,
PhantomData<BlockSubject>: UnsafeUnpin,
PhantomData<BlockPolicy>: UnsafeUnpin,
impl UnwindSafe for Blockwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more