[]Struct jni_android_sys::java::net::MulticastSocket

#[repr(transparent)]
pub struct MulticastSocket(_);

public class MulticastSocket

Required feature: "java-net-MulticastSocket"

Methods

impl MulticastSocket

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, MulticastSocket>, Local<'env, Throwable>>
[src]

pub fn new_int<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<Local<'env, MulticastSocket>, Local<'env, Throwable>>
[src]

pub fn new_SocketAddress<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env SocketAddress>>
) -> Result<Local<'env, MulticastSocket>, Local<'env, Throwable>>
[src]

MulticastSocket

Required features: "java-net-SocketAddress"

pub fn setTTL<'env>(&'env self, arg0: i8) -> Result<(), Local<'env, Throwable>>[src]

Deprecated

pub fn setTimeToLive<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getTTL<'env>(&'env self) -> Result<i8, Local<'env, Throwable>>[src]

Deprecated

pub fn getTimeToLive<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn joinGroup_InetAddress<'env>(
    &'env self,
    arg0: impl Into<Option<&'env InetAddress>>
) -> Result<(), Local<'env, Throwable>>
[src]

joinGroup

Required features: "java-net-InetAddress"

pub fn leaveGroup_InetAddress<'env>(
    &'env self,
    arg0: impl Into<Option<&'env InetAddress>>
) -> Result<(), Local<'env, Throwable>>
[src]

leaveGroup

Required features: "java-net-InetAddress"

pub fn joinGroup_SocketAddress_NetworkInterface<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SocketAddress>>,
    arg1: impl Into<Option<&'env NetworkInterface>>
) -> Result<(), Local<'env, Throwable>>
[src]

joinGroup

Required features: "java-net-NetworkInterface", "java-net-SocketAddress"

pub fn leaveGroup_SocketAddress_NetworkInterface<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SocketAddress>>,
    arg1: impl Into<Option<&'env NetworkInterface>>
) -> Result<(), Local<'env, Throwable>>
[src]

leaveGroup

Required features: "java-net-NetworkInterface", "java-net-SocketAddress"

pub fn setInterface<'env>(
    &'env self,
    arg0: impl Into<Option<&'env InetAddress>>
) -> Result<(), Local<'env, Throwable>>
[src]

setInterface

Required features: "java-net-InetAddress"

pub fn getInterface<'env>(
    &'env self
) -> Result<Option<Local<'env, InetAddress>>, Local<'env, Throwable>>
[src]

getInterface

Required features: "java-net-InetAddress"

pub fn setNetworkInterface<'env>(
    &'env self,
    arg0: impl Into<Option<&'env NetworkInterface>>
) -> Result<(), Local<'env, Throwable>>
[src]

setNetworkInterface

Required features: "java-net-NetworkInterface"

pub fn getNetworkInterface<'env>(
    &'env self
) -> Result<Option<Local<'env, NetworkInterface>>, Local<'env, Throwable>>
[src]

getNetworkInterface

Required features: "java-net-NetworkInterface"

pub fn setLoopbackMode<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getLoopbackMode<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn send<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DatagramPacket>>,
    arg1: i8
) -> Result<(), Local<'env, Throwable>>
[src]

Deprecated

send

Required features: "java-net-DatagramPacket"

Methods from Deref<Target = DatagramSocket>

pub fn bind<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SocketAddress>>
) -> Result<(), Local<'env, Throwable>>
[src]

bind

Required features: "java-net-SocketAddress"

pub fn connect_InetAddress_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env InetAddress>>,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

connect

Required features: "java-net-InetAddress"

pub fn connect_SocketAddress<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SocketAddress>>
) -> Result<(), Local<'env, Throwable>>
[src]

connect

Required features: "java-net-SocketAddress"

pub fn disconnect<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn isBound<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn isConnected<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn getInetAddress<'env>(
    &'env self
) -> Result<Option<Local<'env, InetAddress>>, Local<'env, Throwable>>
[src]

getInetAddress

Required features: "java-net-InetAddress"

pub fn getPort<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getRemoteSocketAddress<'env>(
    &'env self
) -> Result<Option<Local<'env, SocketAddress>>, Local<'env, Throwable>>
[src]

getRemoteSocketAddress

Required features: "java-net-SocketAddress"

pub fn getLocalSocketAddress<'env>(
    &'env self
) -> Result<Option<Local<'env, SocketAddress>>, Local<'env, Throwable>>
[src]

getLocalSocketAddress

Required features: "java-net-SocketAddress"

pub fn send<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DatagramPacket>>
) -> Result<(), Local<'env, Throwable>>
[src]

send

Required features: "java-net-DatagramPacket"

pub fn receive<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DatagramPacket>>
) -> Result<(), Local<'env, Throwable>>
[src]

receive

Required features: "java-net-DatagramPacket"

pub fn getLocalAddress<'env>(
    &'env self
) -> Result<Option<Local<'env, InetAddress>>, Local<'env, Throwable>>
[src]

getLocalAddress

Required features: "java-net-InetAddress"

pub fn getLocalPort<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn setSoTimeout<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getSoTimeout<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn setSendBufferSize<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getSendBufferSize<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn setReceiveBufferSize<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getReceiveBufferSize<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn setReuseAddress<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getReuseAddress<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setBroadcast<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getBroadcast<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setTrafficClass<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getTrafficClass<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn close<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn isClosed<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn getChannel<'env>(
    &'env self
) -> Result<Option<Local<'env, DatagramChannel>>, Local<'env, Throwable>>
[src]

getChannel

Required features: "java-nio-channels-DatagramChannel"

Trait Implementations

impl AsJValue for MulticastSocket

impl AsValidJObjectAndEnv for MulticastSocket

impl Deref for MulticastSocket

type Target = DatagramSocket

The resulting type after dereferencing.

impl JniType for MulticastSocket

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.