pub struct ReadOnlyAuthorizer;Expand description
Authorizer that accepts every link with AccessPolicy::ReadOnly.
Intended for tests that need to exercise the read-only voice drop path on the shell. Production deployments should NOT use this — it provides no capacity check, no banlist, and no per-peer policy.
Trait Implementations§
Source§impl ClientAuthorizer for ReadOnlyAuthorizer
impl ClientAuthorizer for ReadOnlyAuthorizer
Called when a new client attempts to link. Read more
Source§impl Clone for ReadOnlyAuthorizer
impl Clone for ReadOnlyAuthorizer
Source§fn clone(&self) -> ReadOnlyAuthorizer
fn clone(&self) -> ReadOnlyAuthorizer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadOnlyAuthorizer
impl Debug for ReadOnlyAuthorizer
Source§impl Default for ReadOnlyAuthorizer
impl Default for ReadOnlyAuthorizer
Source§fn default() -> ReadOnlyAuthorizer
fn default() -> ReadOnlyAuthorizer
Returns the “default value” for a type. Read more
impl Copy for ReadOnlyAuthorizer
Auto Trait Implementations§
impl Freeze for ReadOnlyAuthorizer
impl RefUnwindSafe for ReadOnlyAuthorizer
impl Send for ReadOnlyAuthorizer
impl Sync for ReadOnlyAuthorizer
impl Unpin for ReadOnlyAuthorizer
impl UnwindSafe for ReadOnlyAuthorizer
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