id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
rust_std_library_types_Traits/644776_88_0.txt | Contributor
### | |
rust_std_library_types_Traits/39_168_0.txt | Development
No branches or pull requests | |
rust_std_library_types_Traits/644776_64_0.txt | nikomatsakis commented Sep 17, 2019
(Marking as blocking as we must reach a decision one way or the other.)
---
All reactions | |
rust_std_library_types_Traits/rust_std_library_types_0_3.txt | Channels ](../../std_misc/channels.html)
4. [ **20.3.** Path ](../../std_misc/path.html)
5. [ **20.4.** File I/O ](../../std_misc/file.html) â±
6. 1. [ **20.4.1.** open ](../../std_misc/file/open.html)
2. [ **20.4.2.** create ](../../std_misc/file/create.html)
3. [ **20.4.3.** read lines... | |
rust_std_library_types_Traits/644776_89_0.txt | jebrosen commented Sep 21, 2019
It looks like @Nemo157 's case in #64477 (comment) (with ` format!() ` )
was not fixed by #64584 after all, with the same error occurring in the
2019-09-20 nightly.
---
All reactions | |
rust_std_library_types_Traits/39_113_0.txt | Sorry, something went wrong.
TimDiekmann mentioned this issue Jan 3, 2022 | |
rust_std_library_types_Traits/644776_67_0.txt | Nemo157 commented Sep 17, 2019 •
edited | |
rust_std_library_types_Traits/rust_std_library_types_11_2.txt | **16.3.** Operator Overloading ](../trait/ops.html)
4. [ **16.4.** Drop ](../trait/drop.html)
5. [ **16.5.** Iterators ](../trait/iter.html)
6. [ **16.6.** impl Trait ](../trait/impl_trait.html)
7. [ **16.7.** Clone ](../trait/clone.html)
8. [ **16.8.** Supertraits ](../trait/supertraits.html)
... | |
rust_std_library_types_Traits/rust_Traits_0_1.txt | 7. 1. [ **9.2.6.1.** Iterator::any ](fn/closures/closure_examples/iter_any.html)
2. [ **9.2.6.2.** Searching through iterators ](fn/closures/closure_examples/iter_find.html)
4. [ **9.3.** Higher Order Functions ](fn/hof.html)
5. [ **9.4.** Diverging functions ](fn/diverging.html)
19. [ **10.**... | |
rust_std_library_types_Traits/39_79_0.txt | This feature is necessary to handle the following from impl on box.
impl From<&str> for Box<dyn Error> { ... } | |
rust_std_library_types_Traits/644776_13_0.txt | By Solution
* CI/CD & Automation
* DevOps
* DevSecOps | |
rust_std_library_types_Traits/prefill-links-with-url-encoding1_43_0.txt | However, if you are only seeing parts of your field prefilled, or if fields
are being cut off after certain values, then you probably need to use URL
encoding.
For example, if you are attempting to prefill in an address field that
involves a #, and it is not being prefilled as expected, then you should use
URL encodin... | |
rust_std_library_types_Traits/rust_std_library_types_0_1.txt | ./../fn/closures/input_parameters.html)
3. [ **9.2.3.** Type anonymity ](../../fn/closures/anonymity.html)
4. [ **9.2.4.** Input functions ](../../fn/closures/input_functions.html)
5. [ **9.2.5.** As output parameters ](../../fn/closures/output_parameters.html)
6. [ **9.2.6.** Examples in std ](... | |
rust_std_library_types_Traits/39_143_0.txt | Sorry, something went wrong.
adsnaider mentioned this issue Oct 4, 2022 | |
rust_std_library_types_Traits/rust_std_library_types_7_3.txt | misc/process/wait.html)
9. [ **20.6.** Filesystem Operations ](../std_misc/fs.html)
10. [ **20.7.** Program arguments ](../std_misc/arg.html) â±
11. 1. [ **20.7.1.** Argument parsing ](../std_misc/arg/matching.html)
12. [ **20.8.** Foreign Function Interface ](../std_misc/ffi.html)
41. [ **21.... | |
rust_std_library_types_Traits/644776_76_0.txt | ###
nikomatsakis commented Sep 18, 2019 | |
rust_std_library_types_Traits/644776_68_0.txt | It could be the temporary from the reborrowing of ` x ` , ` f(x) ` expands to
` f(&*x) ` . Although that making it all the way in to the generator type
seems odd. EDIT: This playground shows that it very likely is (since ` foo
` which doesn't reborrow is fine, but ` bar ` which does fails), it seems like
it could be... | |
rust_std_library_types_Traits/39_117_0.txt | Add no_std support kevinmehall/rust-peg#294
Open | |
rust_std_library_types_Traits/rust_std_library_types_6_1.txt | ctions.html)
5. [ **9.2.5.** As output parameters ](../fn/closures/output_parameters.html)
6. [ **9.2.6.** Examples in std ](../fn/closures/closure_examples.html) â±
7. 1. [ **9.2.6.1.** Iterator::any ](../fn/closures/closure_examples/iter_any.html)
2. [ **9.2.6.2.** Searching throug... | |
rust_std_library_types_Traits/prefill-links-with-url-encoding1_41_0.txt | You can use this document as a guide to create a prefilling link that utilizes
URL encoding. You can view a complete list of URL encoded values for
characters here .
* * * | |
rust_std_library_types_Traits/39_148_0.txt | I read that and thought it was stable - happy to use it with unstable features
if necessary :)
Sorry if I missed some context, I just found out about this issue from the
unstable warning
---
All reactions
Sorry, something went wrong. | |
Electron/web-contents8_186_0.txt | #### ` contents.removeInsertedCSS(key) ` â
* ` key ` string | |
Electron/Using_Screen_Capture8_76_0.txt | For example, this line in the HTTP headers will enable Screen Capture API for
the document and any embedded ` <iframe> ` elements that are loaded from the
same origin:
http | |
Electron/web-contents8_55_0.txt | Returns:
* ` details ` Event < \ >
* ` url ` string - The URL the frame is navigating to.
* ` isSameDocument ` boolean - Whether the navigation happened without changing document. Examples of same document navigations are reference fragment navigations, pushState/replaceState, and same page history naviga... | |
Electron/web-contents8_205_0.txt | * ` level ` number - Zoom level.
Changes the zoom level to the specified level. The original size is 0 and each
increment above or below represents zooming 20% larger or smaller to default
limits of 300% and 50% of original size, respectively. The formula for this is
` scale := 1.2 ^ level ` . | |
Electron/Using_Screen_Capture8_46_0.txt |
const displayMediaOptions = {
video: {
displaySurface: "window",
},
audio: {
echoCancellation: true,
noiseSuppression: true,
sampleRate: 44100,
suppressLocalAudioPlayback: true,
},
surfaceSwitching: "include",
selfBrowserSurface: ... | |
Electron/Using_Screen_Capture8_85_0.txt | * MDN on Mastodon
* MDN on X (formerly Twitter)
* MDN on GitHub
* MDN Blog RSS Feed
## MDN | |
Electron/web-contents8_16_0.txt | ### Frame Navigation â
The ` will-navigate ` and ` did-navigate ` events only fire when the
mainFrame navigates. If you want to also observe navigations in ` <iframe> `
s, use ` will-frame-navigate ` and ` did-frame-navigate ` events. | |
Electron/web-contents8_137_0.txt | Emitted when the preload script ` preloadPath ` throws an unhandled exception
` error ` .
#### Event: 'ipc-message' â | |
Electron/web-contents8_309_0.txt | #### ` contents.getMediaSourceId(requestWebContents) ` â
* ` requestWebContents ` WebContents - Web contents that the id will be registered to. | |
Electron/web-contents8_24_0.txt | * ` targetId ` string - The Chrome DevTools Protocol TargetID associated with the WebContents instance.
Returns ` WebContents | undefined ` \- A WebContents instance with the given TargetID, or ` undefined ` if there is no WebContents associated with the given TargetID. | |
Electron/web-contents8_281_0.txt | Send a message to the renderer process, optionally transferring ownership of
zero or more ` MessagePortMain ` objects.
The transferred ` MessagePortMain ` objects will be available in the renderer
process by accessing the ` ports ` property of the emitted event. When they
arrive in the renderer, they will be native D... | |
Electron/Using_Screen_Capture8_74_0.txt | #### Result
The final product looks like this. If your browser supports Screen Capture
API, clicking "Start Capture" will present the user agent's interface for
selecting a screen, window, or tab to share. | |
Electron/web-contents8_201_0.txt | Returns ` boolean ` \- Whether audio is currently playing.
#### ` contents.setZoomFactor(factor) ` â | |
Electron/web-contents8_244_0.txt |
const win = new BrowserWindow()
const options = {
silent: true,
deviceName: 'My-Printer',
pageRanges: [{
from: 0,
to: 1
}]
}
win.webContents.print(options, (success, errorType) => {
if (!success) console.log(errorType)
}) ... | |
Electron/web-contents8_120_0.txt | Returns:
* ` event ` Event
* ` params ` Object
* ` x ` Integer - x coordinate.
* ` y ` Integer - y coordinate.
* ` frame ` WebFrameMain - Frame from which the context menu was invoked.
* ` linkURL ` string - URL of the link that encloses the node the context menu was invoked on.
* ` linkT... | |
Electron/1941460_15_0.txt | Simple and it will work on all platforms.
You can find the complete code on GitHub . | |
Electron/Electron_6_19.txt | n32/properties/props-system-appusermodel-relaunchcommand) .
* ` relaunchDisplayName ` string (optional) - Window's [ Relaunch Display Name ](https://learn.microsoft.com/en-us/windows/win32/properties/props-system-appusermodel-relaunchdisplaynameresource) .
Sets the properties for the window's taskbar button.
**... | |
Electron/Electron_6_8.txt | ification.
* On macOS, possible types are ` desktop ` , ` textured ` , ` panel ` .
* The ` textured ` type adds metal gradient appearance ( ` NSWindowStyleMaskTexturedBackground ` ).
* The ` desktop ` type places the window at the desktop background window level ( ` kCGDesktopWindowLevel - 1 ` ). Note that... | |
Electron/web-contents8_3_0.txt | Releases GitHub
English | |
Electron/web-contents8_21_0.txt | * ` id ` Integer
Returns ` WebContents | undefined ` \- A WebContents instance with the given ID, or ` undefined ` if there is no WebContents associated with the given ID. | |
Electron/web-contents8_166_0.txt | Stops any pending navigation.
#### ` contents.reload() ` â | |
Electron/web-contents8_238_0.txt | Captures a snapshot of the page within ` rect ` . Omitting ` rect ` will
capture the whole visible page. The page is considered visible when its
browser window is hidden and the capturer count is non-zero. If you would like
the page to stay hidden, you should ensure that ` stayHidden ` is set to true.
#### ` contents... | |
Electron/recording-the-entire-desktop-in-angular-98_38_0.txt |
declare var MediaRecorder: any; // Before the @Component({ declaration
...
public recorder;
public recordedChunks = [];
public isRecording = false;
public recImage = 'assets/cameraOff.png';
...
startRecording() {
this.recordedChunks = [];
th... | |
Electron/web-contents8_310_0.txt | Returns ` string ` \- The identifier of a WebContents stream. This identifier
can be used with ` navigator.mediaDevices.getUserMedia ` using a `
chromeMediaSource ` of ` tab ` . The identifier is restricted to the web
contents that it is registered to and is only valid for 10 seconds.
#### ` contents.getOSProcessId()... | |
Electron/web-contents8_298_0.txt | #### ` contents.isPainting() ` â
Returns ` boolean ` \- If offscreen rendering is enabled returns whether it
is currently painting. | |
Electron/recording-the-entire-desktop-in-angular-98_39_0.txt | Share
Improve this answer | |
Electron/web-contents8_283_0.txt | #### ` contents.enableDeviceEmulation(parameters) ` â
* ` parameters ` Object
* ` screenPosition ` string - Specify the screen type to emulate (default: ` desktop ` ):
* ` desktop ` \- Desktop screen type.
* ` mobile ` \- Mobile screen type.
* ` screenSize ` Size \- Set the emulated scree... | |
Electron/web-contents8_311_0.txt | Returns ` Integer ` \- The operating system ` pid ` of the associated renderer
process.
#### ` contents.getProcessId() ` â | |
Electron/web-contents8_106_0.txt | The usage is the same with the ` login ` event of ` app ` .
#### Event: 'found-in-page' â | |
Electron/web-contents8_33_0.txt | #### Event: 'did-frame-finish-load' â
Returns: | |
Electron/Electron_3_2.txt | reates an empty ` NativeImage ` instance.
### ` nativeImage.createThumbnailFromPath(path, size) ` _macOS_ _Windows_ â
* ` path ` string - path to a file that we intend to construct a thumbnail out of.
* ` size ` [ Size ](/docs/latest/api/structures/size) \- the desired width and height (positive numbers) of t... | |
Electron/recording-the-entire-desktop-in-angular-98_53_0.txt | Name
Email | |
Electron/Using_Screen_Capture8_47_0.txt | In addition, the app is hinting to the user agent that it should:
* Provide a control during screen sharing to allow the user to dynamically switch the shared tab.
* Hide the current tab from the list of options presented to the user when capture is requested.
* Not include the system audio among the possible ... | |
Electron/Using_Screen_Capture8_29_0.txt | Capturing screen contents as a live ` MediaStream ` is initiated by calling
` navigator.mediaDevices.getDisplayMedia() ` , which returns a promise that
resolves to a stream containing the live screen contents. The `
displayMediaOptions ` object referenced in the below examples might look
something like this:
js | |
Electron/web-contents8_308_0.txt | * ` udpPortRange ` Object
* ` min ` Integer - The minimum UDP port number that WebRTC should use.
* ` max ` Integer - The maximum UDP port number that WebRTC should use.
Setting the WebRTC UDP Port Range allows you to restrict the udp port range
used by WebRTC. By default the port range is unrestricted. ... | |
Electron/recording-the-entire-desktop-in-angular-98_63_0.txt | 3
How can I create a background process in electron that takes screenshot of the
entire desktop? | |
Electron/Using_Screen_Capture8_17_0.txt | * Updates
All browser compatibility updates at a glance | |
Electron/web-contents8_48_0.txt | * ` details ` Event < \ >
* ` url ` string - The URL the frame is navigating to.
* ` isSameDocument ` boolean - This event does not fire for same document navigations using window.history api and reference fragment navigations. This property is always set to ` false ` for this event.
* ` isMainFrame `... | |
Electron/Using_Screen_Capture8_11_0.txt | * HTML
Learn to structure web content with HTML | |
Electron/web-contents8_232_0.txt | Inserts ` text ` to the focused element.
#### ` contents.findInPage(text[, options]) ` â | |
Electron/web-contents8_7_0.txt | * Classes
* API Structures | |
Electron/web-contents8_269_0.txt | #### ` contents.inspectSharedWorkerById(workerId) ` â
* ` workerId ` string | |
Electron/web-contents8_237_0.txt | * ` rect ` Rectangle (optional) - The area of the page to be captured.
* ` opts ` Object (optional)
* ` stayHidden ` boolean (optional) - Keep the page hidden instead of visible. Default is ` false ` .
* ` stayAwake ` boolean (optional) - Keep the system awake instead of allowing it to sleep. Default is... | |
Electron/web-contents8_276_0.txt | * ` frameId ` Integer | [ number, number] - the ID of the frame to send to, or a pair of ` [processId, frameId] ` if the frame is in a different process to the main frame.
* ` channel ` string
* ` ...args ` any[]
Send an asynchronous message to a specific frame in a renderer process via `
channel ` , along ... | |
Electron/recording-the-entire-desktop-in-angular-98_11_0.txt | 10. Communities for your favorite technologies. Explore all Collectives
2. Teams | |
Electron/Using_Screen_Capture8_28_0.txt | Note: It may be useful to note that recent versions of the WebRTC adapter.js
shim include implementations of ` getDisplayMedia() ` to enable screen
sharing on browsers that support it but do not implement the current standard
API. This works with at least Chrome, Edge, and Firefox.
## Capturing screen contents | |
Electron/web-contents8_249_0.txt | * ` path ` string
Adds the specified path to DevTools workspace. Must be used after DevTools
creation: | |
Electron/web-contents8_209_0.txt | Sets the maximum and minimum pinch-to-zoom level.
> NOTE : Visual zoom is disabled by default in Electron. To re-enable it,
> call:
>
>
> const win = new BrowserWindow()
> > win.webContents.setVisualZoomLevelLimits(1, 3)
> > | |
Electron/recording-the-entire-desktop-in-angular-98_8_0.txt | 3. Tags
4. 5. Users | |
Electron/web-contents8_97_0.txt | #### Event: 'devtools-closed' â
Emitted when DevTools is closed. | |
Electron/recording-the-entire-desktop-in-angular-98_60_0.txt | #### Linked
11 | |
Electron/web-contents8_90_0.txt | #### Event: 'focus' â
Emitted when the ` WebContents ` gains focus. | |
Electron/Using_Screen_Capture8_51_0.txt | User agents which take privacy seriously should obfuscate content that is not
actually visible onscreen, unless authorization has been given to share that
content specifically.
### Authorizing capture of display contents | |
Electron/1941460_2_0.txt | Settings
Login | |
Electron/Electron_6_15.txt | mission control.
#### ` win.setAlwaysOnTop(flag[, level][, relativeLevel]) ` â
* ` flag ` boolean
* ` level ` string (optional) _macOS_ _Windows_ \- Values include ` normal ` , ` floating ` , ` torn-off-menu ` , ` modal-panel ` , ` main-menu ` , ` status ` , ` pop-up-menu ` , ` screen-saver ` , and ~~` dock ... | |
Electron/web-contents8_82_0.txt | #### Event: 'before-input-event' â
Returns: | |
Electron/web-contents8_67_0.txt | #### Event: 'did-navigate-in-page' â
Returns: | |
Electron/web-contents8_274_0.txt | danger
Sending non-standard JavaScript types such as DOM objects or special Electron
objects will throw an exception. | |
Electron/web-contents8_326_0.txt | #### ` contents.zoomLevel ` â
A ` number ` property that determines the zoom level for this web contents. | |
Electron/web-contents8_118_0.txt | * ` event ` Event
* ` type ` string
* ` image ` NativeImage (optional)
* ` scale ` Float (optional) - scaling factor for the custom cursor.
* ` size ` Size (optional) - the size of the ` image ` .
* ` hotspot ` Point (optional) - coordinates of the custom cursor's hotspot.
Emitted when the cursor'... | |
Electron/recording-the-entire-desktop-in-angular-98_71_0.txt | 4
How to record screen+audio+microphone with RecordRTC | |
Electron/web-contents8_280_0.txt | #### ` contents.postMessage(channel, message, [transfer]) ` â
* ` channel ` string
* ` message ` any
* ` transfer ` MessagePortMain[] (optional) | |
Electron/Using_Screen_Capture8_72_0.txt | #### CSS
The CSS is entirely cosmetic in this example. The video is given a border, and
its width is set to occupy nearly the entire available horizontal space ( `
width: 98% ` ). ` max-width ` is set to ` 860px ` to set an absolute upper
limit on the video's size, | |
Electron/web-contents8_211_0.txt | #### ` contents.redo() ` â
Executes the editing command ` redo ` in web page. | |
Electron/web-contents8_277_0.txt | > NOTE: Sending non-standard JavaScript types such as DOM objects or special
> Electron objects will throw an exception.
The renderer process can handle the message by listening to ` channel ` with
the ` ipcRenderer ` module. | |
Electron/Using_Screen_Capture8_89_0.txt | * Web Technologies
* Learn Web Development
* MDN Plus
* Hacks Blog
Mozilla logo | |
Electron/web-contents8_300_0.txt | If offscreen rendering is enabled sets the frame rate to the specified
number. Only values between 1 and 240 are accepted.
#### ` contents.getFrameRate() ` â | |
Electron/web-contents8_31_0.txt | #### Event: 'did-fail-provisional-load' â
Returns: | |
Electron/recording-the-entire-desktop-in-angular-98_76_0.txt | ##### Stack Overflow
* Questions
* Help | |
Electron/web-contents8_197_0.txt | Returns ` {action: 'deny'} | {action: 'allow', outlivesOpener?: boolean, overrideBrowserWindowOptions?: BrowserWindowConstructorOptions} ` \- ` deny ` cancels the creation of the new window. ` allow ` will allow the new window to be created. Specifying ` overrideBrowserWindowOptions ` allows customization of the create... | |
Electron/1941460_13_0.txt |
ipcMain.handle('electronMain:openScreenSecurity', () => util.openSystemPreferences('security', 'Privacy_ScreenCapture'));
ipcMain.handle('electronMain:getScreenAccess', () => !IS_OSX || systemPreferences.getMediaAccessStatus('screen') === 'granted');
ipcMain.handle('electronMain:screen:getSources'... | |
Electron/1941460_4_0.txt | # How to build an Electron desktopCapturer screen picker dialog
Level of difficulty Easy | |
Electron/web-contents8_110_0.txt | Emitted when media is paused or done playing.
#### Event: 'audio-state-changed' â | |
Electron/1941460_5_0.txt | JavaScript *
Invite pending | |
Electron/Using_Screen_Capture8_78_0.txt | html
<iframe src="https://mycode.example.net/etc" allow="display-capture"> </iframe>
| |
Electron/web-contents8_203_0.txt | The factor must be greater than 0.0.
#### ` contents.getZoomFactor() ` â | |
Electron/web-contents8_117_0.txt | #### Event: 'cursor-changed' â
Returns: | |
Electron/recording-the-entire-desktop-in-angular-98_17_0.txt | Learn more about Teams
Get early access and see previews of new features. | |
Electron/1941460_17_0.txt | * electron
* electron js
* desktopCapturer
* screen capture
* screen sharing
* screen picker
Hubs: |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.