[−]Struct jni_android_sys::java::net::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]
__jni_env: &'env Env
) -> Result<Local<'env, MulticastSocket>, Local<'env, Throwable>>
pub fn new_int<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Local<'env, MulticastSocket>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Local<'env, MulticastSocket>, Local<'env, Throwable>>
pub fn new_SocketAddress<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env SocketAddress>>
) -> Result<Local<'env, MulticastSocket>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env SocketAddress>>
) -> Result<Local<'env, MulticastSocket>, Local<'env, Throwable>>
Required features: "java-net-SocketAddress"
pub fn setTTL<'env>(&'env self, arg0: i8) -> Result<(), Local<'env, Throwable>>
[src]
pub fn setTimeToLive<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getTTL<'env>(&'env self) -> Result<i8, Local<'env, Throwable>>
[src]
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]
&'env self,
arg0: impl Into<Option<&'env InetAddress>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-net-InetAddress"
pub fn leaveGroup_InetAddress<'env>(
&'env self,
arg0: impl Into<Option<&'env InetAddress>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env InetAddress>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env SocketAddress>>,
arg1: impl Into<Option<&'env NetworkInterface>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env SocketAddress>>,
arg1: impl Into<Option<&'env NetworkInterface>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env InetAddress>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-net-InetAddress"
pub fn getInterface<'env>(
&'env self
) -> Result<Option<Local<'env, InetAddress>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, InetAddress>>, Local<'env, Throwable>>
Required features: "java-net-InetAddress"
pub fn setNetworkInterface<'env>(
&'env self,
arg0: impl Into<Option<&'env NetworkInterface>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env NetworkInterface>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-net-NetworkInterface"
pub fn getNetworkInterface<'env>(
&'env self
) -> Result<Option<Local<'env, NetworkInterface>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, NetworkInterface>>, Local<'env, Throwable>>
Required features: "java-net-NetworkInterface"
pub fn setLoopbackMode<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env DatagramPacket>>,
arg1: i8
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env SocketAddress>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env InetAddress>>,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
Required features: "java-net-InetAddress"
pub fn connect_SocketAddress<'env>(
&'env self,
arg0: impl Into<Option<&'env SocketAddress>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SocketAddress>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, InetAddress>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, SocketAddress>>, Local<'env, Throwable>>
Required features: "java-net-SocketAddress"
pub fn getLocalSocketAddress<'env>(
&'env self
) -> Result<Option<Local<'env, SocketAddress>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, SocketAddress>>, Local<'env, Throwable>>
Required features: "java-net-SocketAddress"
pub fn send<'env>(
&'env self,
arg0: impl Into<Option<&'env DatagramPacket>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env DatagramPacket>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-net-DatagramPacket"
pub fn receive<'env>(
&'env self,
arg0: impl Into<Option<&'env DatagramPacket>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env DatagramPacket>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-net-DatagramPacket"
pub fn getLocalAddress<'env>(
&'env self
) -> Result<Option<Local<'env, InetAddress>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, InetAddress>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getSendBufferSize<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn setReceiveBufferSize<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getReceiveBufferSize<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn setReuseAddress<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, DatagramChannel>>, Local<'env, Throwable>>
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.
fn deref(&self) -> &Self::Target
impl JniType for MulticastSocket
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for MulticastSocket
impl !Send for MulticastSocket
impl !Sync for MulticastSocket
impl Unpin for MulticastSocket
impl UnwindSafe for MulticastSocket
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,