Struct rust_raknet::RaknetListener
source · [−]pub struct RaknetListener { /* private fields */ }
Implementations
sourceimpl RaknetListener
impl RaknetListener
pub async fn bind(sockaddr: SocketAddr) -> Result<Self, RaknetError>
pub async fn from_std(s: UdpSocket) -> Result<Self, RaknetError>
pub async fn listen(&mut self)
pub async fn accept(&mut self) -> Result<RaknetSocket, RaknetError>
pub async fn set_motd(
&mut self,
mc_protocol_version: &str,
mc_version: &str,
guid: u64,
game_type: &str,
port: u16
)
pub async fn get_motd(&self) -> String
pub fn local_addr(&self) -> Result<SocketAddr, RaknetError>
Auto Trait Implementations
impl !RefUnwindSafe for RaknetListener
impl Send for RaknetListener
impl Sync for RaknetListener
impl Unpin for RaknetListener
impl !UnwindSafe for RaknetListener
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more