pub struct Engine(/* private fields */);Expand description
A clonable interface to create and manage IRC XDCC requests.
Implementations§
Source§impl Engine
impl Engine
Sourcepub fn create_request(
&self,
server: impl Into<String>,
channel: impl Into<String>,
botname: impl Into<String>,
packnum: u64,
) -> Request
pub fn create_request( &self, server: impl Into<String>, channel: impl Into<String>, botname: impl Into<String>, packnum: u64, ) -> Request
Create a new XDCC Request using the given parameters.
§Arguments
server- IRC server address.channel- IRC channel to join.botname- Bot’s nickname to send the XDCC request to.packnum- XDCC pack number.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl !Send for Engine
impl !Sync for Engine
impl Unpin for Engine
impl UnwindSafe for Engine
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