pub struct LongPollTransport { /* private fields */ }Expand description
Phoenix LongPoll transport for browsers without a usable WebSocket path.
Trait Implementations§
Source§impl Transport for LongPollTransport
impl Transport for LongPollTransport
Source§fn supports_binary(&self) -> bool
fn supports_binary(&self) -> bool
Returns whether this transport can send Phoenix binary frames.
Source§fn send<'a>(
&'a mut self,
message: WireMessage,
) -> LocalBoxFuture<'a, Result<(), TransportError>>
fn send<'a>( &'a mut self, message: WireMessage, ) -> LocalBoxFuture<'a, Result<(), TransportError>>
Sends one complete wire message.
Source§fn receive<'a>(
&'a mut self,
) -> LocalBoxFuture<'a, Result<TransportEvent, TransportError>>
fn receive<'a>( &'a mut self, ) -> LocalBoxFuture<'a, Result<TransportEvent, TransportError>>
Waits for the next message or close notification.
Source§fn close<'a>(&'a mut self) -> LocalBoxFuture<'a, Result<(), TransportError>>
fn close<'a>(&'a mut self) -> LocalBoxFuture<'a, Result<(), TransportError>>
Closes the transport using its default close behavior.
Source§fn close_with<'a>(
&'a mut self,
request: TransportCloseRequest,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + 'a>>
fn close_with<'a>( &'a mut self, request: TransportCloseRequest, ) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + 'a>>
Closes the transport with an explicit WebSocket code and reason.
Auto Trait Implementations§
impl Freeze for LongPollTransport
impl !RefUnwindSafe for LongPollTransport
impl !Send for LongPollTransport
impl !Sync for LongPollTransport
impl Unpin for LongPollTransport
impl UnsafeUnpin for LongPollTransport
impl !UnwindSafe for LongPollTransport
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