[−][src]Trait misskey_core::streaming::StreamingClient
Abstraction over API clients with streaming connections.
Associated Types
Loading content...Required methods
pub fn subnote<E: SubNoteEvent>(
&self,
note_id: String
) -> BoxFuture<'_, Result<SubNoteStream<'_, E, Self::Error>, Self::Error>>
[src]
&self,
note_id: String
) -> BoxFuture<'_, Result<SubNoteStream<'_, E, Self::Error>, Self::Error>>
Captures the note specified by note_id
.
pub fn channel<R: ConnectChannelRequest>(
&self,
request: R
) -> BoxFuture<'_, Result<ChannelStream<'_, R, Self::Error>, Self::Error>>
[src]
&self,
request: R
) -> BoxFuture<'_, Result<ChannelStream<'_, R, Self::Error>, Self::Error>>
Connects to the channel using request
.
pub fn broadcast<E: BroadcastEvent>(
&self
) -> BoxFuture<'_, Result<BroadcastStream<'_, E, Self::Error>, Self::Error>>
[src]
&self
) -> BoxFuture<'_, Result<BroadcastStream<'_, E, Self::Error>, Self::Error>>
Receive messages from the broadcast stream.
Implementations on Foreign Types
impl<C: ?Sized, '_> StreamingClient for &'_ C where
C: StreamingClient,
[src]
C: StreamingClient,
type Error = C::Error
pub fn subnote<E: SubNoteEvent>(
&self,
note_id: String
) -> BoxFuture<'_, Result<SubNoteStream<'_, E, Self::Error>, Self::Error>>
[src]
&self,
note_id: String
) -> BoxFuture<'_, Result<SubNoteStream<'_, E, Self::Error>, Self::Error>>
pub fn channel<R: ConnectChannelRequest>(
&self,
request: R
) -> BoxFuture<'_, Result<ChannelStream<'_, R, Self::Error>, Self::Error>>
[src]
&self,
request: R
) -> BoxFuture<'_, Result<ChannelStream<'_, R, Self::Error>, Self::Error>>
pub fn broadcast<E: BroadcastEvent>(
&self
) -> BoxFuture<'_, Result<BroadcastStream<'_, E, Self::Error>, Self::Error>>
[src]
&self
) -> BoxFuture<'_, Result<BroadcastStream<'_, E, Self::Error>, Self::Error>>
impl<C: ?Sized, '_> StreamingClient for &'_ mut C where
C: StreamingClient,
[src]
C: StreamingClient,
type Error = C::Error
pub fn subnote<E: SubNoteEvent>(
&self,
note_id: String
) -> BoxFuture<'_, Result<SubNoteStream<'_, E, Self::Error>, Self::Error>>
[src]
&self,
note_id: String
) -> BoxFuture<'_, Result<SubNoteStream<'_, E, Self::Error>, Self::Error>>
pub fn channel<R: ConnectChannelRequest>(
&self,
request: R
) -> BoxFuture<'_, Result<ChannelStream<'_, R, Self::Error>, Self::Error>>
[src]
&self,
request: R
) -> BoxFuture<'_, Result<ChannelStream<'_, R, Self::Error>, Self::Error>>
pub fn broadcast<E: BroadcastEvent>(
&self
) -> BoxFuture<'_, Result<BroadcastStream<'_, E, Self::Error>, Self::Error>>
[src]
&self
) -> BoxFuture<'_, Result<BroadcastStream<'_, E, Self::Error>, Self::Error>>
impl<C: ?Sized> StreamingClient for Box<C> where
C: StreamingClient,
[src]
C: StreamingClient,
type Error = C::Error
pub fn subnote<E: SubNoteEvent>(
&self,
note_id: String
) -> BoxFuture<'_, Result<SubNoteStream<'_, E, Self::Error>, Self::Error>>
[src]
&self,
note_id: String
) -> BoxFuture<'_, Result<SubNoteStream<'_, E, Self::Error>, Self::Error>>
pub fn channel<R: ConnectChannelRequest>(
&self,
request: R
) -> BoxFuture<'_, Result<ChannelStream<'_, R, Self::Error>, Self::Error>>
[src]
&self,
request: R
) -> BoxFuture<'_, Result<ChannelStream<'_, R, Self::Error>, Self::Error>>
pub fn broadcast<E: BroadcastEvent>(
&self
) -> BoxFuture<'_, Result<BroadcastStream<'_, E, Self::Error>, Self::Error>>
[src]
&self
) -> BoxFuture<'_, Result<BroadcastStream<'_, E, Self::Error>, Self::Error>>