#[non_exhaustive]pub struct NoPush;Available on crate feature
server only.Expand description
A PushSource that never pushes, for a server whose capability says
supportsPush: false. A WebSocketPushEnable is accepted and
yields nothing.
Trait Implementations§
impl Copy for NoPush
Source§impl PushSource for NoPush
impl PushSource for NoPush
Source§fn subscribe(
&mut self,
_enable: &WebSocketPushEnable,
) -> BoxStream<'static, WsStateChange>
fn subscribe( &mut self, _enable: &WebSocketPushEnable, ) -> BoxStream<'static, WsStateChange>
Start a subscription for
enable: yield every later state change,
and first, when enable.push_state is a token this source issued,
the changes since it (“the server SHOULD immediately send all
changes since that state token”, §4.3.5.2). Read moreAuto Trait Implementations§
impl Forget for NoPush
impl Freeze for NoPush
impl Move for NoPush
impl RefUnwindSafe for NoPush
impl Send for NoPush
impl Sync for NoPush
impl Unpin for NoPush
impl UnsafeUnpin for NoPush
impl UnwindSafe for NoPush
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