pub struct RoleSlice {
pub command: Vec<String>,
pub max_sessions: u32,
pub relay_required: Vec<String>,
pub relay_count: Option<u32>,
}Expand description
The fields reconfigure consumes.
Fields§
§command: Vec<String>§max_sessions: u32§relay_required: Vec<String>Downstream handoffs a session of this role owes (relay_required).
relay_count: Option<u32>The count form of the same policy (relay_count); a non-empty list wins
when both are present, which is the guard’s own precedence.
Implementations§
Source§impl RoleSlice
impl RoleSlice
pub fn from_welcome(welcome: &Welcome) -> Self
pub fn from_role_info(info: &RoleInfo, _current: &RoleSlice) -> Self
Trait Implementations§
impl Eq for RoleSlice
impl StructuralPartialEq for RoleSlice
Auto Trait Implementations§
impl Freeze for RoleSlice
impl RefUnwindSafe for RoleSlice
impl Send for RoleSlice
impl Sync for RoleSlice
impl Unpin for RoleSlice
impl UnsafeUnpin for RoleSlice
impl UnwindSafe for RoleSlice
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.