pub struct DrainWorker {
pub client: DrainClient,
}Expand description
Drain worker: pull envelopes from C2 and parse g4a on core.
Fields§
§client: DrainClientImplementations§
Source§impl DrainWorker
impl DrainWorker
pub fn new(client: DrainClient) -> Self
pub async fn connect_and_open( &self, node_id: &str, channel_id: u32, kind: ChannelKind, after: u64, ) -> Result<DrainSession, Error>
Auto Trait Implementations§
impl Freeze for DrainWorker
impl RefUnwindSafe for DrainWorker
impl Send for DrainWorker
impl Sync for DrainWorker
impl Unpin for DrainWorker
impl UnsafeUnpin for DrainWorker
impl UnwindSafe for DrainWorker
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