pub struct AllowAll;Available on crate feature
server only.Expand description
An AccessControl that admits every endpoint.
This is the default used by RelayConfig::new.
Trait Implementations§
Source§impl AccessControl for AllowAll
impl AccessControl for AllowAll
Source§async fn on_connect(&self, _request: &ClientRequest) -> Access
async fn on_connect(&self, _request: &ClientRequest) -> Access
Decides whether a connecting client is admitted. Read more
Source§fn on_disconnect(&self, endpoint_id: EndpointId, connection_id: ConnectionId)
fn on_disconnect(&self, endpoint_id: EndpointId, connection_id: ConnectionId)
Notifies that a connection has ended. Read more
impl Copy for AllowAll
Auto Trait Implementations§
impl Freeze for AllowAll
impl RefUnwindSafe for AllowAll
impl Send for AllowAll
impl Sync for AllowAll
impl Unpin for AllowAll
impl UnwindSafe for AllowAll
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,
Source§impl<T> DynAccessControl for Twhere
T: AccessControl,
impl<T> DynAccessControl for Twhere
T: AccessControl,
Source§fn on_connect<'a>(
&'a self,
request: &'a ClientRequest,
) -> Pin<Box<dyn Future<Output = Access> + Send + 'a>>
fn on_connect<'a>( &'a self, request: &'a ClientRequest, ) -> Pin<Box<dyn Future<Output = Access> + Send + 'a>>
Available on crate feature
server only.Source§fn on_disconnect(&self, endpoint_id: PublicKey, connection_id: ConnectionId)
fn on_disconnect(&self, endpoint_id: PublicKey, connection_id: ConnectionId)
Available on crate feature
server only.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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